package service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import domain.Friend;
import domain.example.FriendExample;
import mapper.FriendMapper;
import service.IFriendService;

@Service("FriendService")
public class FriendServiceImpl implements IFriendService {
	@Resource
	private FriendMapper friendMapper;

	@Override
	public int countByExample(FriendExample example) {
		return friendMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(FriendExample example) {
		return friendMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer friendId) {
		return friendMapper.deleteByPrimaryKey(friendId);
	}

	@Override
	public int insert(Friend record) {
		return friendMapper.insert(record);
	}

	@Override
	public int insertSelective(Friend record) {
		return friendMapper.insertSelective(record);
	}

	@Override
	public List<Friend> selectByExample(FriendExample example) {
		return friendMapper.selectByExample(example);
	}

	@Override
	public Friend selectByPrimaryKey(Integer friendId) {
		return friendMapper.selectByPrimaryKey(friendId);
	}

	@Override
	public int updateByExampleSelective(Friend record, FriendExample example) {
		return friendMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(Friend record, FriendExample example) {
		return friendMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(Friend record) {
		return friendMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Friend record) {
		return friendMapper.updateByPrimaryKey(record);
	}
	
	
}
